<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/1
 * Time: 9:58
 */

namespace Home\Controller;

use Common\Controller\HomeController;

class TestController extends HomeController
{
    public function index()
    {
        $this->display('index');
    }
    public function aaa()
    {
        dump('post.');
    }
    //跳转
    public function location()
    {
        $this->success('tiaozhuang','index');
        $this->error();
    }
    //URL
    public function url()
    {
        $data = ['a'=>'1','b'=>'2'];
        $this->assign('data',$data);
        $date =[
            ['id'=>'aaa','n'=>'ccc'],
            ['id'=>'bbb','n'=>'ddd']
        ];
        $this->assign('date',$date);
        //dump(U());

        $a = '1eewrew1221312qddsadsadada';
        $this->assign($a);

        define('EVV','AAA');


        $this->display('index');
        $this->display('Public/foot');
    }
    //ajax
    public function bbb()
    {
        $arr['a']='bbb';
        $arr['b']='aaa';
        $this->ajaxReturn($arr);
    }
    public function add()
    {

        $this->display('add');
    }
    public function code()
    {
        $Verify = new \Think\Verify();
        $Verify->entry();
        dump($Verify->entry());
    }
}